<?php

class varcharType extends typeInterface{
    
    public $form_type = "text";
    
    //qualquer coisa é varchar, não temos que validar
    public function validate($campo, &$array){
        return true;
    }
    
    public function formulario($name, $array, $caption = "", $value = "", $desc = ""){
        $array['size'] = isset($array['size'])?$array['size']:0;
        if($array['size'] >= 200)$this->form->textarea($name, $caption, $value, $desc);
        else $this->form->text($name, $caption, $value, $desc);
    }
}

?>
